#include "setsplitmodehandler.h"
#include "NetworkCommonFunction.h"
#include "setsplitmode.h"
#include "common.h"

#include <QDebug>

bool SetSplitModeHandler(int socket, int commandLength)
{
	int splitMode;
	if(!getFourByte(socket, splitMode))
	{
		qDebug()<<"Get split mode error";
		return false;
	}
	SetSplitMode setSplitMode((SplitMode)splitMode);
	setSplitMode.doCommand();
	return true;
}
